import request from '@/utils/request'

// StoreHouse 新建仓库
export function financePurchaseSave(data) {
  return request({
    url: 'FinancePurchase/saveOrUpdate',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
// 获取列表信息
export function financePurchaseIndex(data) {
  return request({
    url: 'FinancePurchase/queryPageList',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

// finance采购 详情
export function financePurchaseRead(data) {
  return request({
    url: 'FinancePurchase/queryById',
    method: 'post',
    data: data
  })
}
// 删除
export function financePurchaseDelete(data) {
  return request({
    url: 'FinancePurchase/deleteByIds',
    method: 'post',
    data: data
  })
}

// 采购明细
export function psiPurchaseEnLeStoDetailList(data) {
  return request({
    url: 'FinancePurchase/queryEnterLeaveStockDetailByElsId',
    method: 'post',
    data: data
  })
}

// 采购审核是否要给上一级
export function nextToLastExamineUser(data) {
  return request({
    url: 'examineRecord/nextToLastExamineUser',
    method: 'post',
    data: data
  })
}

// 采购的所有申请单号
export function psiAllPurchaseNum(data) {
  return request({
    url: 'FinancePurchase/queryPurchaseNum',
    method: 'post',
    data: data
  })
}
